package com.ibeeking.found.msg.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName SmsTemplateDo
 * @Description
 * @Author ibeeking
 * @Date 2020-12-09 10:54
 **/
@Data
@TableName("sms_template")
public class SmsTemplateDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 配置id
     */
    @TableField(value = "config_id")
    private Long configId;
    /**
     * 租户id
     */
    @TableField(value = "sign_id")
    private Long signId;
    /**
     * 短信供应商ID
     */
    @TableField(value = "sms_vendor_code")
    private String smsVendorCode;
    /**
     * 模板名称
     */
    @TableField(value = "template_name")
    private String templateName;
    /**
     * 标题
     */
    @TableField(value = "template_subject")
    private String templateSubject;
    /**
     * 模板编码
     */
    @TableField(value = "template_code")
    private String templateCode;

    /**
     * 模板内容
     */
    @TableField(value = "template_content")
    private String templateContent;

    /**
     * 适用场景，1-验证码，2-短信通知，3-推广短信
     */
    @TableField(value = "template_type")
    private Integer templateType;
    /**
     * 场景连接Link
     */
    @TableField(value = "type_link")
    private String typeLink;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否启用，1-启用，0-未启用
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("modify_time")
    private LocalDateTime modifyTime;

    @TableField("modify_by")
    private Long modifyBy;
}
